<?php

class Tutorial extends UI_MobilePage {

    public function __construct() {
        parent::__construct();

        $p = $this->createPage("Tutorial");
        

$text = "
<h3>1) see configuration file</h3>

<p>After install zenmo, open the /zenmo/etc/config.ini file</p>

<p>The <i>page.main</i> key shows the entry point page, in folder <i>pages</i></p>

<pre>
page.main			= site:main   ;site:main is a www.zenmo.net site !!
</pre>

<p> The value <i>site:main</i> configure zenmo to access a class 'Main' in folder 'site'</p>

<h3>2) see entry point class</h3>

<p>Open the file: /zenmo/pages/site/Main.php</p>

<p>The Main class representas a single page and extends the UI_MobilePage class</p>

<pre>
&lt;?php

class Main extends UI_MobilePage {
</pre>

<h3>3) see constructor method</h3>

<p>The constructor method contain all logic to create a mobile page. </p>

<pre>
&#36;p = &#36;this->createPage(\"Zenmo Framework - zenmo.net\");
</pre>

<h3>4) add components</h3>

<p>The <i>createPage</i> methods
creates a single Page where can add more components:</p>

<pre>
&#36;text = \"Hello World\";
&#36;p->add(new UI_Text(&#36;text));
</pre>

<p>You can add any components that begins with \"UI_\"  prefix. See a component list on main page.

";

	$p->add(new UI_Text($text));

      	
    }

}

?>